package com.mimi.design.bridge.demo;

/**
 * create by gary 2020/3/26
 * 技术交流请加QQ:498982703
 */
public class MessageClent {
    public static void main(String[] args) {
        MessageImpltor impltor = new MessageSMS();
        AbstractMessage message = new CommonMessage(impltor);
        message.sendMessage("加班申请");

        impltor = new MessageEmail();
        message = new UrgencyMessage(impltor);
        message.sendMessage("加班申请");


    }
}
